﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GCGS.aspx.cs" Inherits="GPCSC.Web.SHFW.GCGS" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
        <title>淮安市领导干部下基层活动网站</title>
<meta name="KEYWords" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
<meta name="DEscription" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
    <script type="text/javascript" src="../Scripts/jquery-1.6.2.min.js"></script>
    <script type="text/javascript">
        $(document).ready(
        function () {
           // alert("1");
            $.ajax({
                type: "POST",
                url: "../SHFW/GCGS.ashx?type=lb",
                dataTyle: "plain",
                success: function (ResponseText) {
                    $("#LB").html(ResponseText);
                }
            });
        }
        );

        function lbch(e) {
        //类别改变  加载相应的内容
            var value = $(e).val();
            $.ajax({
                type: "POST",
                url: "../SHFW/GCGS.ashx?type=nr&lbv="+value,
                dataTyle: "plain",
                success: function (ResponseText) {
                    $("#nr").html(ResponseText);
                }
            });

        }
        var count = 0; //记录实际支付数的次数
        function addj() {
            count += 1;
            sjzfs.innerHTML += "<div id='div"+count.toString()+"'> <div style=' float:left'>金额 <input type='text' /></div><div style='float:left' > 支付时间 <input  type='text' /></div><div  >  <input  type='button' value='删除' onclick='del(\""+count.toString()+"\")' /></div></div>";
        }
        function del(counts) {
            //alert(counts);
            var sd = document.getElementById("div" + counts);
            sd.parentNode.removeChild(sd);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table>
    <tr>
    <td>
    请选择类别：
    </td>
    <td>
        <select id="LB" onchange="lbch(this)"></select>
    </td>
    </tr>
    <tr>
    <td>
    请选择内容:
    </td>
    <td>
  <select id="nr"></select>
    </td>
    </tr>
    <tr>
    <td colspan="2">
            <table>
                <tr>
                <td>
                    批准概数额
                </td>
                <td colspan="2">
                    <input type="text" />

                </td>
                </tr>
                <tr>
                <td rowspan="2">
                    本次申请数
                </td>
                <td>
                    申请内容
                </td>
                <td>
                <input type="text" />
                </td>
                </tr>
                <tr>
                    <td>
                        申请金额
                    </td>
                    <td>
                    <input type="text" />
                    </td>
                </tr>
                <tr>
                <td>
                    实际支付数
                </td>
                <td colspan="2">
                    <div style=" text-align: right">
                        <input type="button" onclick="addj()" value="增加记录" />
                  </div>
                  <div id="sjzfs">
                            
                            
                  </div>
                  <div>
                  小计<input type="text" />
                  </div>

                </td>
                </tr>
                 <tr>
                <td rowspan="2">
                    概决算差额
                </td>
                <td>
                    超支
                </td>
                <td>
                <input type="text" />
                </td>
                </tr>
                <tr>
                    <td>
                        结余
                    </td>
                    <td>
                    <input type="text" />
                    </td>
                </tr>
                <tr>
                <td>
                    备注
                </td>
                <td colspan="2">
                    <input type="text" />

                </td>
                </tr>
            </table>
    
    </td>
    </tr>
    <tr>
    <td colspan="3" style=" text-align:center">
    <input type="button" value="保存" />
    &nbsp;&nbsp;&nbsp;&nbsp;
    <input type="button" value="取消" />
    </td>
    </tr>
    </table>
   
    </div>
    </form>
</body>
</html>
